<template>
  <div class="demo-block">
    <h4>千位分隔符</h4>
    <div class="demo-row">
      <my-number-animation
        class="demo-number"
        ref="number"
        :from="0"
        :to="2000000"
        show-separator
        :autoplay="false"
      ></my-number-animation>
      <my-button @click="$refs.number.start()">播放</my-button>
    </div>
  </div>
</template>

<script>
import button from "../../../../src/components/button";
import numberAnimation from "../../../../src/components/numberAnimation";
export default {
  components: {
    "my-number-animation": numberAnimation,
    "my-button": button,
  },
};
</script>

<style>
</style>